﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace array
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] mark = new int[3];
            string[] name = new string[3];
            Console.WriteLine("Hay nhap ten va diem cua 10 sinh vien:");
            for (int i = 0; i < 3; i++)
            {
                Console.WriteLine("Sinh vien: " +(i+1));
                Console.WriteLine("Ten");
                name[i] = Console.ReadLine();
                Console.WriteLine("Diem");
                mark[i] = int.Parse(Console.ReadLine());
            }
            Console.WriteLine("==========================================================");
            Console.WriteLine("Ten va diem cua 10 sinh vien:");

            foreach (int i in mark)
            {
                System.Console.WriteLine(i);
            }

            //for (int i = 0; i < 5; i++)
            //{
            //    Console.WriteLine("Sinh vien: " + (i + 1));
            //    Console.WriteLine("Ten");
             //   Console.WriteLine(name[i]);
             //   Console.WriteLine("Diem");
            //    Console.WriteLine(mark[i]);
            //}
            Console.ReadLine();
        }
    }
}
